<%= form_for(:session, url: guides_path, :html => {:class=>'form-horizontal'}) do |t| %>
	<fieldset>
		<legend>
    <%= link_to '游戏指南列表', guides_path %>
    </legend>
  <div class="control-group">
    <label class="control-label">标题</label>
    <div class="controls">
    <%= t.text_field :title, :placeholder => '标题描述' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">分类</label>
    <div class="controls">
      <%= select_tag "session[level_id]", options_from_collection_for_select(@level, 'id', 'title') %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">详细</label>
    <div class="controls">
      <%= t.kindeditor :content, simple_mode:true, :id => 'content', :width => '720', :height => '350'%>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn">新增</button>
    </div>
  </div>
</fieldset>
<% end %>
